﻿using Microsoft.ExtendedReflection.ComponentModel;
using Microsoft.ExtendedReflection.Logging;
using MolesVS2012.Host;

namespace MolesVS2012.Host.Agent
{
    internal sealed class MolesAgentEngine : Microsoft.ExtendedReflection.ComponentModel.Engine
    {
        public MolesAgentEngine(IContainer container, MolesAgentAdapter adapter, MolesVsHostOptions options)
            : base(container, (IComponent)adapter, (IComponent)options, (IComponent)new EventLog())
        {
        }

        protected override void AddComponents()
        {
            this.AddComponent((string)null, (IComponent)new MolesHostAdapterManager());
            this.AddComponent((string)null, (IComponent)new RunResultSyncLogger(RemotingEntityKind.Agent));
        }
    }
}